package Java多线程技术.问题;

public class Test {

    public static void main(String[] args) {
        MyService myService = new MyService();

        MyThreadA[] array = new MyThreadA[10];
        for (int i=0;i<10;i++){
            array[i] = new MyThreadA(myService);
        }

        for (int i=0;i<10;i++){
            array[i].start();
        }



//        MyThreadB threadB = new MyThreadB(myService);
//        threadB.start();

    }
}
